<footer class="footer" id="footer">
    <p>@2017.09 做一个有思维的开发者</p>
    <p>版权所有 | ZANE |备案号：粤ICP备17036106号-1 | <script src="https://s13.cnzz.com/z_stat.php?id=1264414751&web_id=1264414751" language="JavaScript"></script></p>
</footer>
<div id="hddb"></div>
<div style="none">
  
</div>

<!-- <div id="loading"></div> -->
<script>
    // $(function(){
    //     $('#loading').hide();
    // })

    //回到顶部JS开始
    $(window).scroll(function(){
        var scrollTop=document.documentElement.scrollTop||document.body.scrollTop;
      //alert(scrollTop)
      if(scrollTop>200){
       $('#hddb').show();
      }else{
       $('#hddb').hide();
      }
       
    }); 
    $('#hddb').click(function(){
       var scrollTimer=null;
       scrollTimer=setInterval(function (){
        var scrollTop=document.documentElement.scrollTop||document.body.scrollTop;
        var iSpeed=Math.floor(-scrollTop/6);
        if(scrollTop==0)
        {
         clearInterval(scrollTimer);
        }
        document.documentElement.scrollTop=document.body.scrollTop=scrollTop+iSpeed;
       }, 30);
    });
    //回到顶部JS结束
</script>
